package org.example.demo.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.example.demo.entity.VolunteerData;

@Mapper
public interface VolunteerDataMapper {

    /**
     * 更新志愿书审核数据
     * @param volunteerData
     */
    void update(VolunteerData volunteerData);

    /**
     * 插入志愿书审核数据
     * @param volunteerData
     */
    void insert(VolunteerData volunteerData);

    /**
     * 根据志愿书id删除志愿审核数据
     * @param volunteerId
     */
    @Delete("delete from volunteer_data where volunteer_id = #{volunteerId}")
    void deleteByVolunteerId(Long volunteerId);
}
